package org.someone.common;

public class StandardConvert {
	
	public static double ad2ar(double ov, double mar, double mad){
		double nv = CustomMaths.round(ov*((100-mar)/(100-mad)),2);
		return nv;
	}
	
	public static double ad2d(double ov, double mad){
		double nv = CustomMaths.round(ov*(100/(100-mad)),2);
		return nv;
	}
	
	public static double ad2daf(double ov, double mad, double aad){
		double nv = CustomMaths.round(ov*(100/(100-mad-aad)),2);
		return nv;
	}
	
	public static double ar2ad(double ov, double mar, double mad){
		double nv = CustomMaths.round(ov*((100-mad)/(100-mar)),2);
		return nv;
	}
	
	public static double d2ad(double ov, double mad){
		double nv = CustomMaths.round(ov*((100-mad)/100),2);
		return nv;
	}
	
	public static double daf2ad(double ov, double mad, double aad){
		double nv = CustomMaths.round(ov*((100-mad-aad)/100),2);
		return nv;
	}
	
}
